/**
 * 订单状态枚举常量
 */
package com.msh.platform.elm.common.constants;

public enum OrderStatus {
	dzf("0","待广告主支付"),
	yzf("1","广告主已支付，待广告主提交资料"),
	ytj("2","资料已提交，待闽商汇反馈文章"),
	yfh("3","文章已反馈，待广告主确认"),
	yqr("4","已确认，待闽商汇同步数据"),
	ytb("5","已同步，待商会发布"),
	ywc("6","已发布完成"),
	yqc("7","广告主已取消");
 
	private String code;
	private String name;
  
	OrderStatus(String code, String name) {
		this.code = code;
		this.name = name;
	}
	public String getCode(){
		return code;
	}
 
	public String getName(){
		return name;
	}
	
	public static OrderStatus getEnumByCode(String code){
	    for(OrderStatus item : OrderStatus.values()){
	      if(item.getCode().equals(code)){
	        return item;
	      }
	    }
	    return null;
    }
}
